#ifndef __ERROR_H__
#define __ERROR_H__

#define E_INVAL 3      // invalid parameter
#define E_NO_MEM 4     // request failed due to memory shortage
#define E_TOO_BIG 12   // argument is too big
#define E_NO_DEV 13    // no such device
#define E_NA_DEV 14    // device not available
#define E_BUSY 15      // device is busy
#define E_NOENTRY 16   // no such file or directory
#define E_NOTDIR 18    // not a directory
#define E_UNIMP      20  // unimplemented
#define E_MAX_OPEN 22  // too many files are open
#define E_EXISTS 23    // file/directory already exists

#endif
